<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/common/commonCss.jsp"/>
<jsp:include page="/common/commonJs.jsp"/>
<title>嘉童游乐中心-复核商品定价清单</title>
</head>
<body class="bg">
<script>
		//复核总部价格
		function checkHeadPrice(){
				var status=$("input:[name='checkItem']:checked").val();
				if(status=="4"){
					if($("#auditRemark").val()==""){
						alertInfo("请填写不同意的原因");
						return;					
					}
				}
				$("#status").val(status);
				$.ajax({
					url:"${basePath}scmInvocing/priceManager/checkHeadPrice.shtml",
					data:$("#udatePrice").serialize(),
					type:"post",
			 		async:false,
			 		dataType:"text",
			 		error : function(XMLHttpRequest) {
      	 				ajaxError(XMLHttpRequest);
      	 			},
			 		success:function(result){
			 				if(result=="success"){
			 					window.location.href="${basePath}scmInvocing/priceManager/forwardToList.shtml";
			 				}
			 		}
				});
		}
</script>
<div class="content m_auto">
 <div class="content_l mt10">
    	<ul>
    		<shiro:hasPermission name="scmInvocing/productInfo/forwardToProductInfo.shtml">
    				  <li ><a href="${basePath}scmInvocing/productInfo/forwardToProductInfo.shtml"><i class="nav_icon_b"></i><br>商品信息</a></li>
    		</shiro:hasPermission>
    		 <shiro:hasPermission name="scmInvocing/countUnit/forwardToUnitInfo.shtml">
    		 		<li><a href="${basePath}scmInvocing/countUnit/forwardToUnitInfo.shtml"><i class="nav_icon_b"></i><br>单位设置</a></li>
    		 </shiro:hasPermission>
    		 <shiro:hasPermission name="scmInvocing/supplier/forwardToSupply.shtml">
    		 		   <li><a href="${basePath}scmInvocing/supplier/forwardToSupply.shtml"><i class="nav_icon_a"></i><br>供应商信息</a></li>
    		 </shiro:hasPermission>
    		  <shiro:hasPermission name="scmInvocing/priceManager/forwardToList.shtml">
    		 		  <li class="content_hover"><a href="${basePath}scmInvocing/priceManager/forwardToList.shtml"><i class="nav_icon_f"></i><br>价格管理</a></li>
    		 </shiro:hasPermission>
    		   <shiro:hasPermission name="scmInvocing/scmPurOrder/findInvoPurOrder.shtml">
            	  <li><a href="${basePath}scmInvocing/scmPurOrder/findInvoPurOrder.shtml"><i class="nav_icon_b"></i><br>采购订单</a></li>
    		 </shiro:hasPermission>
    		   <shiro:hasPermission name="scmInvocing/scmPayForm/findInvoOrderPay.shtml">
           		   <li><a href="${basePath}scmInvocing/scmPayForm/findInvoOrderPay.shtml"><i class="nav_icon_b"></i><br>付款申请</a></li>
    		 </shiro:hasPermission>
  	 </ul>
    </div>
    <div class="content_r mt10">
    	<div class="p20">
    	<form id="udatePrice">
    	<input type="hidden" name="status" id="status" value="" >
    	<input type="hidden" name="pkPriceId" id="pkPriceId" value="${entity.pkPriceId}" />
    	<input type="hidden" name="modiBy" value="${modiBy}" >
    	<input type="hidden" name="fkPrdId" value="${entity.pkPrdId}">
    	<div class="file_single_dl f14 fixed">
             <dl class="fixed"  >
                <dd ><label><h1>商品定价清单</h1></label></dd>
            </dl>
            <dl class="fixed"  >
                <dd ><label>定价人：</label>${userName}</dd>
                <dd ><label>定价日期：</label>${nowDate}</dd>
            </dl>
       		 <dl class="fixed"  >
                <dd ><label>商品编号：</label> <input type="text" class="iput_t w200"   value="${entity.pkPrdId}" disabled>  </dd> 
                <dd ><label>商品名称：</label> <input type="text" class="iput_t w200" value="${entity.prdName}" disabled>  </dd>
            </dl>
      		 <dl class="fixed"  >
                <dd ><label> 计量单位：</label> <input type="text" class="iput_t w200" value="${entity.unitName}" disabled>  </dd> 
                <dd ><label>商品规格：</label> <input type="text" class="iput_t w200" value="${entity.prdSpec}" disabled>  </dd>
            </dl>
               <dl class="fixed"  >
                <dd ><label> 商品分类：</label> <input type="text" class="iput_t w200" value="${entity.cateName}" disabled>  </dd> 
                <dd ><label>市场销售价：</label> <input type="text" class="iput_t w200" value="${entity.marketPrice }"  name="marketPrice"  disabled="disabled">  </dd>
            </dl>
            <dl class="fixed"  >
                 <dd ><label> 允许分店定价：</label> <div class="uboxstyle">
                			<c:choose>
                					<c:when test="${entity.isAllow=='1'}">
                							<input type="text" class="iput_t w200" value="是" disabled="disabled">
                					</c:when>
                					<c:otherwise>
                						<input type="text" class="iput_t w200" value="否" disabled="disabled">
                					</c:otherwise>
                			</c:choose>
                         </div> </dd> 
            </dl>
              <dl class="fixed">
	              <dd ><label>总部价格：</label> <input type="text" class="iput_t w200" name="headPrice" value="${entity.headPrice}" disabled="disabled" >  </dd>
            </dl>
             <dl class="fixed mt10">
              			<dd>
                        	<label>复核结果：</label>
                            <input type="radio" name="checkItem" value="1" checked style="width:20px">同意　　　
                            <input type="radio" name="checkItem" value="4" >不同意
                        </dd>
                        <dd>
                        	<label>复核意见：</label>
                            <textarea class="textare w200"  name="auditRemark" id="auditRemark"></textarea>
                        </dd>
            </dl>
        </div>
        </form>
      <div class="btm_btn mt10">
                    <dl>
                        <dd><input type="button" class="btn" value="确定" onclick="checkHeadPrice();"></dd>
                        <dd><input type="button" class="btn" value="返回" onclick="javascript:window.location.href='${basePath}scmInvocing/priceManager/forwardToList.shtml'"></dd>
                    </dl>
            </div>
        </div>
    </div>
</div>
</body>
</html>